package com.huazi.eduorder.config;

import com.baomidou.mybatisplus.core.injector.ISqlInjector;
import com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author shkstart
 * @create 2021-03-30 19:12
 */
@Configuration
@MapperScan("com.huazi.eduorder.mapper")
public class OrderConfig {
    @Bean//逻辑删除插件
    public ISqlInjector sqlInjector(){
        return new LogicSqlInjector();
    }
}
